home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / lwlib / energize / search.xdc < prev    next >
Encoding:
Text File  |  1995-01-11  |  7.3 KB  |  215 lines

  1.  
  2. /*
  3. ** Generated by X-Designer 
  4. */
  5. /*
  6. **LIBS: -lXm -lXt -lX11
  7. */
  8.  
  9. #include <X11/Xatom.h>
  10. #include <X11/Intrinsic.h>
  11. #include <X11/Shell.h>
  12.  
  13. #include <Xm/Xm.h>
  14. #include <Xm/DialogS.h>
  15. #include <Xm/Form.h>
  16. #include <Xm/Frame.h>
  17. #include <Xm/Label.h>
  18. #include <Xm/PushB.h>
  19. #include <Xm/RowColumn.h>
  20. #include <Xm/TextF.h>
  21. #include <Xm/ToggleB.h>
  22. #include <Xm/ToggleBG.h>
  23.  
  24.  
  25. Widget match_word;
  26. Widget button1;
  27.  
  28.  
  29. create_widget0( parent )
  30. Widget parent;
  31. {
  32.     Display *display = XtDisplay ( parent );
  33.     Widget children[7];      /* Children to manage */
  34.     Arg al[64];           /* Arg List */
  35.     register int ac = 0;      /* Arg Count */
  36.     char from_s [256];    /* For font list conversion */
  37.     XrmValue from_value, to_value; /* ditto */
  38.     int fg, bg;           /* colour values for pixmaps */ 
  39.     XmString *list_items; /* For list items */
  40.     int list_item;        /* Index for list_items */
  41.     XmString xmstrings[15];    /* temporary storage for XmStrings */
  42.     Widget widget0;
  43.     Widget widget1;
  44.     Widget widget2;
  45.     Widget widget3;
  46.     Widget widget4;
  47.     Widget widget5;
  48.     Widget widget6;
  49.     Widget widget7;
  50.     Widget widget8;
  51.     Widget widget10;
  52.     Widget widget12;
  53.     Widget widget13;
  54.     Widget widget14;
  55.     Widget widget15;
  56.     Widget widget16;
  57.     Widget widget17;
  58.     Widget widget18;
  59.     Widget widget19;
  60.     Widget widget20;
  61.     Widget widget21;
  62.     Widget widget22;
  63.     Widget widget23;
  64.  
  65.     XtSetArg(al[ac], XmNallowShellResize, TRUE); ac++;
  66.     widget0 = XmCreateDialogShell ( parent, "dialog", al, ac );
  67.     ac = 0;
  68.     XtSetArg(al[ac], XmNautoUnmanage, FALSE); ac++;
  69.     widget1 = XmCreateForm ( widget0, "searchDialog", al, ac );
  70.     ac = 0;
  71.     XtSetArg(al[ac], XmNorientation, XmHORIZONTAL); ac++;
  72.     widget2 = XmCreateRowColumn ( widget1, "widget2", al, ac );
  73.     ac = 0;
  74.     widget3 = XmCreateFrame ( widget2, "widget3", al, ac );
  75.     XtSetArg(al[ac], XmNorientation, XmHORIZONTAL); ac++;
  76.     XtSetArg(al[ac], XmNpacking, XmPACK_TIGHT); ac++;
  77.     widget4 = XmCreateRadioBox ( widget3, "directionBox", al, ac );
  78.     ac = 0;
  79.     widget5 = XmCreateToggleButtonGadget ( widget4, "directionForward", al, ac );
  80.     widget6 = XmCreateToggleButtonGadget ( widget4, "directionBackward", al, ac );
  81.     widget7 = XmCreateToggleButton ( widget2, "regexpSearch", al, ac );
  82.     widget8 = XmCreateToggleButton ( widget2, "caseSearch", al, ac );
  83.     match_word = XmCreateToggleButton ( widget2, "matchWord", al, ac );
  84.     widget10 = XmCreateRowColumn ( widget1, "widget10", al, ac );
  85.     button1 = XmCreatePushButton ( widget10, "button1", al, ac );
  86.     widget12 = XmCreatePushButton ( widget10, "button2", al, ac );
  87.     widget13 = XmCreatePushButton ( widget10, "button3", al, ac );
  88.     widget14 = XmCreatePushButton ( widget10, "button4", al, ac );
  89.     widget15 = XmCreateRowColumn ( widget1, "widget15", al, ac );
  90.     widget16 = XmCreatePushButton ( widget15, "gotoStart", al, ac );
  91.     widget17 = XmCreatePushButton ( widget15, "scrollBack", al, ac );
  92.     widget18 = XmCreatePushButton ( widget15, "scrollForward", al, ac );
  93.     widget19 = XmCreatePushButton ( widget15, "gotoEnd", al, ac );
  94.     widget20 = XmCreateLabel ( widget1, "searchLabel", al, ac );
  95.     widget21 = XmCreateLabel ( widget1, "replaceLabel", al, ac );
  96.     widget22 = XmCreateTextField ( widget1, "searchText", al, ac );
  97.     widget23 = XmCreateTextField ( widget1, "replaceText", al, ac );
  98.     XtSetArg(al[ac], XmNdefaultButton, button1); ac++;
  99.     XtSetValues ( widget1,al, ac );
  100.     ac = 0;
  101.  
  102.     XtSetArg(al[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
  103.     XtSetArg(al[ac], XmNtopOffset, 4); ac++;
  104.     XtSetArg(al[ac], XmNtopWidget, widget23); ac++;
  105.     XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
  106.     XtSetArg(al[ac], XmNleftAttachment, XmATTACH_FORM); ac++;
  107.     XtSetArg(al[ac], XmNleftOffset, 4); ac++;
  108.     XtSetArg(al[ac], XmNrightAttachment, XmATTACH_WIDGET); ac++;
  109.     XtSetArg(al[ac], XmNrightOffset, 4); ac++;
  110.     XtSetArg(al[ac], XmNrightWidget, widget10); ac++;
  111.         XtSetValues ( widget2,al, ac );
  112.     ac = 0;
  113.  
  114.     XtSetArg(al[ac], XmNtopAttachment, XmATTACH_FORM); ac++;
  115.     XtSetArg(al[ac], XmNtopOffset, 4); ac++;
  116.     XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_FORM); ac++;
  117.     XtSetArg(al[ac], XmNbottomOffset, 4); ac++;
  118.     XtSetArg(al[ac], XmNleftAttachment, XmATTACH_NONE); ac++;
  119.     XtSetArg(al[ac], XmNrightAttachment, XmATTACH_WIDGET); ac++;
  120.     XtSetArg(al[ac], XmNrightOffset, 4); ac++;
  121.     XtSetArg(al[ac], XmNrightWidget, widget15); ac++;
  122.         XtSetValues ( widget10,al, ac );
  123.     ac = 0;
  124.  
  125.     XtSetArg(al[ac], XmNtopAttachment, XmATTACH_FORM); ac++;
  126.     XtSetArg(al[ac], XmNtopOffset, 4); ac++;
  127.     XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_FORM); ac++;
  128.     XtSetArg(al[ac], XmNbottomOffset, 4); ac++;
  129.     XtSetArg(al[ac], XmNleftAttachment, XmATTACH_NONE); ac++;
  130.     XtSetArg(al[ac], XmNrightAttachment, XmATTACH_FORM); ac++;
  131.     XtSetArg(al[ac], XmNrightOffset, 4); ac++;
  132.         XtSetValues ( widget15,al, ac );
  133.     ac = 0;
  134.  
  135.     XtSetArg(al[ac], XmNtopAttachment, XmATTACH_FORM); ac++;
  136.     XtSetArg(al[ac], XmNtopOffset, 5); ac++;
  137.     XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
  138.     XtSetArg(al[ac], XmNleftAttachment, XmATTACH_NONE); ac++;
  139.     XtSetArg(al[ac], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET); ac++;
  140.     XtSetArg(al[ac], XmNrightOffset, 0); ac++;
  141.     XtSetArg(al[ac], XmNrightWidget, widget21); ac++;
  142.         XtSetValues ( widget20,al, ac );
  143.     ac = 0;
  144.  
  145.     XtSetArg(al[ac], XmNtopAttachment, XmATTACH_FORM); ac++;
  146.     XtSetArg(al[ac], XmNtopOffset, 41); ac++;
  147.     XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
  148.     XtSetArg(al[ac], XmNleftAttachment, XmATTACH_FORM); ac++;
  149.     XtSetArg(al[ac], XmNleftOffset, 4); ac++;
  150.     XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
  151.         XtSetValues ( widget21,al, ac );
  152.     ac = 0;
  153.  
  154.     XtSetArg(al[ac], XmNtopAttachment, XmATTACH_FORM); ac++;
  155.     XtSetArg(al[ac], XmNtopOffset, 4); ac++;
  156.     XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
  157.     XtSetArg(al[ac], XmNleftAttachment, XmATTACH_WIDGET); ac++;
  158.     XtSetArg(al[ac], XmNleftOffset, 4); ac++;
  159.     XtSetArg(al[ac], XmNleftWidget, widget21); ac++;
  160.     XtSetArg(al[ac], XmNrightAttachment, XmATTACH_WIDGET); ac++;
  161.     XtSetArg(al[ac], XmNrightOffset, 4); ac++;
  162.     XtSetArg(al[ac], XmNrightWidget, widget10); ac++;
  163.         XtSetValues ( widget22,al, ac );
  164.     ac = 0;
  165.  
  166.     XtSetArg(al[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
  167.     XtSetArg(al[ac], XmNtopOffset, 4); ac++;
  168.     XtSetArg(al[ac], XmNtopWidget, widget22); ac++;
  169.     XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
  170.     XtSetArg(al[ac], XmNleftAttachment, XmATTACH_WIDGET); ac++;
  171.     XtSetArg(al[ac], XmNleftOffset, 4); ac++;
  172.     XtSetArg(al[ac], XmNleftWidget, widget21); ac++;
  173.     XtSetArg(al[ac], XmNrightAttachment, XmATTACH_WIDGET); ac++;
  174.     XtSetArg(al[ac], XmNrightOffset, 4); ac++;
  175.     XtSetArg(al[ac], XmNrightWidget, widget10); ac++;
  176.         XtSetValues ( widget23,al, ac );
  177.     ac = 0;
  178.     children[ac++] = widget5;
  179.     children[ac++] = widget6;
  180.     XtManageChildren(children, ac);
  181.     ac = 0;
  182.     children[ac++] = widget4;
  183.     XtManageChildren(children, ac);
  184.     ac = 0;
  185.     children[ac++] = widget3;
  186.     children[ac++] = widget7;
  187.     children[ac++] = widget8;
  188.     children[ac++] = match_word;
  189.     XtManageChildren(children, ac);
  190.     ac = 0;
  191.     children[ac++] = button1;
  192.     children[ac++] = widget12;
  193.     children[ac++] = widget13;
  194.     children[ac++] = widget14;
  195.     XtManageChildren(children, ac);
  196.     ac = 0;
  197.     children[ac++] = widget16;
  198.     children[ac++] = widget17;
  199.     children[ac++] = widget18;
  200.     children[ac++] = widget19;
  201.     XtManageChildren(children, ac);
  202.     ac = 0;
  203.     children[ac++] = widget2;
  204.     children[ac++] = widget10;
  205.     children[ac++] = widget15;
  206.     children[ac++] = widget20;
  207.     children[ac++] = widget21;
  208.     children[ac++] = widget22;
  209.     children[ac++] = widget23;
  210.     XtManageChildren(children, ac);
  211.     ac = 0;
  212. }
  213.  
  214.  
  215.